package cn.xuguowen.user.designPatten.factory.config_factory;

/**
 * ClassName: Client
 * Package: cn.xuguowen.user.designPatten.factory.config_factory
 * Description:
 * 客户端
 * @Author 徐国文
 * @Create 2023/4/27 15:35
 * @Version 1.0
 */
public class Client {

    public static void main(String[] args) {
        // 获取美式咖啡
        Coffee american = ConfigFactory.getCoffee("american");
        System.out.println(american.getName());

        System.out.println("=================");

        // 获取拿铁咖啡
        Coffee latte = ConfigFactory.getCoffee("latte");
        System.out.println(latte.getName());
    }
}

